package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 单据编号设置
 * </p>
 *
 * @author baiqiang
 * @since 2020-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pub_voucher_number_set")
@ApiModel(value="ErpNumberSet对象", description="编号设置 ")
public class ErpNumberSet extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "模块名称")
    @TableField("module_name")
    private String moduleName;

    @ApiModelProperty(value = "模块编码")
    @TableField("module_code")
    private String moduleCode;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "默认编码")
    @TableField("default_code")
    private String defaultCode;

    @ApiModelProperty(value = "当前编码")
    @TableField("current_code")
    private String currentCode;

    @ApiModelProperty(value = "单据编码")
    @TableField("voucher_code")
    private String voucherCode;

    @ApiModelProperty(value = "中间们:1年月日2:年月3:年")
    @TableField("median")
    private Integer median;

    @ApiModelProperty(value = "流水位数")
    @TableField("stream_number")
    private Integer streamNumber;

    @ApiModelProperty(value = "起始值")
    @TableField("start_value")
    private Integer startValue;

    @ApiModelProperty(value = "是否分割符号")
    @TableField("is_split_mark")
    private Boolean isSplitMark;

    @ApiModelProperty(value = "是否需要审核")
    @TableField("is_approval")
    private Boolean isApproval;

    @ApiModelProperty(value = "是否启用审批")
    @TableField("is_start_approval")
    private Boolean isStartApproval;

    @ApiModelProperty(value = "是否移动审批")
    @TableField("is_move_approval")
    private Boolean isMoveApproval;

    @ApiModelProperty(value = "是否邮件审批")
    @TableField("is_email_approval")
    private Boolean isEmailApproval;

    @ApiModelProperty(value = "审核人")
    @TableField("approval_user_id")
    private Integer approvalUserId;

    @ApiModelProperty(value = "审核人")
    @TableField("approval_user_name")
    private String approvalUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDate updateDate;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;


}
